import { createApp } from 'vue'
import App from './App.vue'
import '@/style/reset.css'
// 引入全局组件
import HospitalTop from '@/components/Top/index.vue'
import Login from '@/components/Login/index.vue'
import Visitor from '@/components/Visitor/index.vue'
//引入路由
import router from '@/router'
//引入ui插件
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'dayjs/locale/zh-cn'
import locale from "element-plus/es/locale/lang/zh-cn";
// 引入pinia仓库
import pinia from "@/store";
const app=createApp(App)
// pinia的安装
app.use(pinia);
app.use(ElementPlus,{locale})
app.use(router)
// 全局组件
app.component('HospitalTop',HospitalTop)
app.component('Login',Login)
app.component('Visitor',Visitor)
app.mount('#app')
